i.MX6UL: isiot: Switch the mmc env based on devno
authorJagan Teki <[email protected]>
Fri, 24 Feb 2017 10:15:20 +0000 (15:45 +0530)
committerStefano Babic <[email protected]>
Fri, 17 Mar 2017 08:27:08 +0000 (09:27 +0100)
commite9685967bbcdbf9ca8bd5e313b747a02d0b0ca07
tree9c29ccd5d0333ffaac065aa1aca67d907883a3e9
parent0dd259a1b13554947d813ed315dc860cee67fb8e
i.MX6UL: isiot: Switch the mmc env based on devno

Add board_mmc_get_env_dev

Switch the mmc env based on the mmc devno, instead of separately
defining a config item in include/configs using board_mmc_get_env_dev
- devno 0: sd/esd
- devno 1: mmc/emmc

Cc: Stefano Babic <[email protected]>
Cc: Matteo Lisi <[email protected]>
Cc: Michael Trimarchi <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
board/engicam/isiotmx6ul/isiotmx6ul.c